/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-09-08
 * Time: 17:56
 */
public class Demo5 {
    private static Object locker = new Object();
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            synchronized (locker) {
                synchronized (locker) {
                    System.out.println(666);
                }
            }
        });

        t1.start();
    }
}
